Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enketo-preview url routed to PreviewXFormListViewSet #1953

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

FrankApiyo
Copy link
Member

@FrankApiyo FrankApiyo commented Nov 23, 2020

Changes / Features implemented

Add a new URL that is routed to PreviewXFormListViewSet

Steps taken to verify this change does what is intended

This has been tested on the staging environment and works as expected
Closes #1952

Copy link
Member

@ukanga ukanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just concerned we do not have test to perhaps check this will work as expected Perhaps in onadata/apps/api/tests/viewsets/test_xform_list_viewset.py as was the case when we introduced the /enketo path.

ukanga
ukanga previously approved these changes Nov 25, 2020
Copy link
Member

@ukanga ukanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also add some documentation in the docs for this new endpoint as well perhaps on the enketo endpoint. Check with @DavisRayM on the full docs for both endpoints.

@FrankApiyo FrankApiyo force-pushed the fix-1952-add-enketo-preview-endpoint branch 4 times, most recently from 5d8aaf3 to b742e8e Compare December 3, 2020 07:41
@FrankApiyo FrankApiyo requested review from ivermac and ukanga and removed request for WinnyTroy December 3, 2020 07:42
@FrankApiyo FrankApiyo force-pushed the fix-1952-add-enketo-preview-endpoint branch from b742e8e to 3b7250c Compare December 3, 2020 07:52
Copy link
Contributor

@ivermac ivermac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct to assume that PreviewXFormListViewSet has already been implemented?

^^^^^^^
::

curl -X GET https://stage-api.ona.io/<user_name>/<form_pk>/formList
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use api.ona.io on our example urls?


::

curl -X GET https://stage-api.ona.io/enketo/<form_pk>/formList
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above


::

curl -X GET https://stage-api.ona.io/enketo-preview/<form_pk>/formList
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above?

@FrankApiyo
Copy link
Member Author

Is it correct to assume that PreviewXFormListViewSet has already been implemented?

@ivermac yes! https://github.com/onaio/onadata/blob/master/onadata/apps/api/viewsets/xform_list_viewset.py#L167

@FrankApiyo FrankApiyo force-pushed the fix-1952-add-enketo-preview-endpoint branch from 3b7250c to ecf26ab Compare December 3, 2020 08:02
Copy link
Member

@ukanga ukanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you ensure that all checks are passing?

@ukanga ukanga merged commit dd0881e into master Dec 3, 2020
@ukanga ukanga deleted the fix-1952-add-enketo-preview-endpoint branch December 3, 2020 11:29
@DavisRayM DavisRayM mentioned this pull request Dec 10, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Private forms not on FormList for authenticated users but available for anonymous users
3 participants